package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;
import java.util.List;


/**
 * The persistent class for the HOSP_PATIENT_REGISTRATION database table.
 * 
 */
@Entity
@Table(name="HOSP_PATIENT_REGISTRATION")
@NamedQuery(name="HospPatientRegistration.findAll", query="SELECT h FROM HospPatientRegistration h")
public class HospPatientRegistration implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="PATIENT_REGISTRATION_ID")
	private String patientRegistrationId;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="OPERATION_TIME")
	private Date operationTime;

	@Column(name="PAY_OR_NOT")
	private String payOrNot;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="VISIT_TIME")
	private Date visitTime;
	

	@Column(name="STATUS")
	private String status;
	

	//bi-directional many-to-one association to Card
	@ManyToOne
	@JoinColumn(name="CRAD_ID")
	private Card card;

	//bi-directional many-to-one association to ChargeprojectTable
	@ManyToOne
	@JoinColumn(name="CHARGECODE")
	private ChargeprojectTable chargeprojectTable;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;


	//bi-directional many-to-one association to HospPatientWaitDoctor
	@OneToMany(mappedBy="hospPatientRegistration")
	private List<HospPatientWaitDoctor> hospPatientWaitDoctors;

	//bi-directional many-to-one association to HospPatientWaitMedicine
	@OneToMany(mappedBy="hospPatientRegistration")
	private List<HospPatientWaitMedicine> hospPatientWaitMedicines;

	//bi-directional many-to-one association to HospWorkInNotice
	@OneToMany(mappedBy="hospPatientRegistration")
	private List<HospWorkInNotice> hospWorkInNotices;

	//bi-directional many-to-one association to HospWorkOutNotice
	@OneToMany(mappedBy="hospPatientRegistration")
	private List<HospWorkOutNotice> hospWorkOutNotices;

	/*//bi-directional many-to-one association to HospWorkPatientErx
	@OneToMany(mappedBy="hospPatientRegistration")
	private List<HospWorkPatientErx> hospWorkPatientErxs;*/


	public HospPatientRegistration() {
	}

	public String getPatientRegistrationId() {
		return patientRegistrationId;
	}

	public void setPatientRegistrationId(String patientRegistrationId) {
		this.patientRegistrationId = patientRegistrationId;
	}

	public Date getOperationTime() {
		return operationTime;
	}

	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}



	public void setPayOrNot(String payOrNot) {
		this.payOrNot = payOrNot;
	}

	public Date getVisitTime() {
		return visitTime;
	}

	public void setVisitTime(Date visitTime) {
		this.visitTime = visitTime;
	}

	public Card getCard() {
		return card;
	}

	public void setCard(Card card) {
		this.card = card;
	}

	public ChargeprojectTable getChargeprojectTable() {
		return chargeprojectTable;
	}

	public void setChargeprojectTable(ChargeprojectTable chargeprojectTable) {
		this.chargeprojectTable = chargeprojectTable;
	}

	public Staff getStaff() {
		return staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String string) {
		this.status=string;
	}
}